package com.brainhealth.customer.mapper;

import java.util.List;
import com.brainhealth.customer.domain.ScoreConsumeRecord;

/**
 * 积分消耗记录Mapper接口
 * 
 * @author ruoyi
 * @date 2023-11-06
 */
public interface ScoreConsumeRecordMapper 
{
    /**
     * 查询积分消耗记录
     * 
     * @param id 积分消耗记录主键
     * @return 积分消耗记录
     */
    public ScoreConsumeRecord selectScoreConsumeRecordById(Long id);

    /**
     * 查询最大积分消耗记录ID
     * @return
     */
    Integer getMaxScoreConsumeRecordId();

    /**
     * 查询积分消耗记录列表
     * 
     * @param scoreConsumeRecord 积分消耗记录
     * @return 积分消耗记录集合
     */
    public List<ScoreConsumeRecord> selectScoreConsumeRecordList(ScoreConsumeRecord scoreConsumeRecord);

    /**
     * 新增积分消耗记录
     * 
     * @param scoreConsumeRecord 积分消耗记录
     * @return 结果
     */
    public int insertScoreConsumeRecord(ScoreConsumeRecord scoreConsumeRecord);

    /**
     * 修改积分消耗记录
     * 
     * @param scoreConsumeRecord 积分消耗记录
     * @return 结果
     */
    public int updateScoreConsumeRecord(ScoreConsumeRecord scoreConsumeRecord);

    /**
     * 删除积分消耗记录
     * 
     * @param id 积分消耗记录主键
     * @return 结果
     */
    public int deleteScoreConsumeRecordById(Long id);

    /**
     * 批量删除积分消耗记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteScoreConsumeRecordByIds(Long[] ids);
}
